import { post, get } from '../../../request.js'

// 查询登录日志列表
export function loginLogList(query) {
    return post({
        url: '/system/loginlog/pageList',
        params: query
    })
}

// 删除登录日志
export const delLoginLog = params => {
    return post({
        url: '/system/loginlog/delete',
        params
    })
}

// 清理登录日志
export function clearLoginLog() {
    return get({
        url: '/system/loginlog/clear'
    })
}

// 查询操作日志列表
export function operlogList(query) {
    return post({
        url: '/system/operlog/pageList',
        params: query
    })
}

// 删除操作日志
export const delOperlog = params => {
    return post({
        url: '/system/operlog/delete',
        params
    })
}

// 清理操作日志
export function clearOperlog() {
    return get({
        url: '/system/operlog/clear'
    })
}
